<template>
<div>
  <div>遮罩层下方内容</div>
  <div class="mask-layer">
    <main class="content">
      遮罩层里边内容
        <div>1.放一个div盒子与下方内容同级</div>
        <div>2.设置外层阴影和透明度</div>
        <div>3.设置宽高铺满整个页面</div>
        <div>4.在内层写个盒子写内容</div>
    </main>
  </div>
</div>
</template>

<script>
export default {

}
</script>

<style lang="scss" scoped>
  .mask-layer{
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    position: fixed;
    top: 0;
    left:0;
  }
  .content{
    width: 800px;
    height: 498px;
    background: #FFFFFF;
    box-shadow: 0px 3px 8px 0px rgba(22,93,255,0.0627);
    border-radius: 6px 6px 6px 6px;
    opacity: 1;
    position: fixed;
    top: 50%;
    left:50%;
    transform: translate(-50%,-50%);
    padding: 30px;
    box-sizing: border-box;
    line-height: 48px;
  }
</style>
